﻿using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Expression;
using Castle.ActiveRecord;
namespace Mang24k99.Model.KEYW
{
    [ActiveRecord(Table = "KT_KEYW_FIXWORDS_History")]
    public partial class MKtKeywFixwordsHistory : ActiveRecordBase
    {
        public static IList<MKtKeywFixwordsHistory> SelectAll()
        {
            return (IList<MKtKeywFixwordsHistory>)FindAll(typeof(MKtKeywFixwordsHistory));
        }
        public static MKtKeywFixwordsHistory SelectByPrimaryKey(object ID)
        {
            return (MKtKeywFixwordsHistory)FindByPrimaryKey(typeof(MKtKeywFixwordsHistory), ID);
        }
        public static IList<MKtKeywFixwordsHistory> SelectALLByProperty(string property, object value)
        {
            return (IList<MKtKeywFixwordsHistory>)FindAllByProperty(typeof(MKtKeywFixwordsHistory), property, value);
        }
        public static IList<MKtKeywFixwordsHistory> SelectALLSliced(int firstResult, int maxResult, NHibernate.Expression.DetachedCriteria criteria)
        {

            return (IList<MKtKeywFixwordsHistory>)SlicedFindAll(typeof(MKtKeywFixwordsHistory), firstResult, maxResult, criteria);
        }



        /// <summary>
        /// Gets or sets the ID.()
        /// </summary>
        /// <value>The ID.</value>
        [PrimaryKey(PrimaryKeyType.Native, "ID")]
        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }


        /// <summary>
        /// Gets or sets the WordsNO.()
        /// </summary>
        /// <value>The WordsNO.</value>
        [Property("WORDS_NO")]
        public int? WordsNO
        {
            get
            {
                return _WordsNO;
            }
            set
            {
                _WordsNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the FixwordNO.()
        /// </summary>
        /// <value>The FixwordNO.</value>
        [Property("FIXWORD_NO")]
        public int? FixwordNO
        {
            get
            {
                return _FixwordNO;
            }
            set
            {
                _FixwordNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the CompositeNO.()
        /// </summary>
        /// <value>The CompositeNO.</value>
        [Property("COMPOSITE_NO")]
        public string CompositeNO
        {
            get
            {
                return _CompositeNO;
            }
            set
            {
                _CompositeNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the ORDER.()
        /// </summary>
        /// <value>The ORDER.</value>
        [Property("[ORDER]")]
        public int? ORDER
        {
            get
            {
                return _ORDER;
            }
            set
            {
                _ORDER = value;
            }
        }


        /// <summary>
        /// Gets or sets the IsValidate.()
        /// </summary>
        /// <value>The IsValidate.</value>
        [Property("IS_VALIDATE")]
        public int? IsValidate
        {
            get
            {
                return _IsValidate;
            }
            set
            {
                _IsValidate = value;
            }
        }


        /// <summary>
        /// Gets or sets the InputTime.()
        /// </summary>
        /// <value>The InputTime.</value>
        [Property("INPUT_TIME")]
        public DateTime? InputTime
        {
            get
            {
                return _InputTime;
            }
            set
            {
                _InputTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the ModifyTime.()
        /// </summary>
        /// <value>The ModifyTime.</value>
        [Property("MODIFY_TIME")]
        public DateTime? ModifyTime
        {
            get
            {
                return _ModifyTime;
            }
            set
            {
                _ModifyTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the DeleteTime.()
        /// </summary>
        /// <value>The DeleteTime.</value>
        [Property("DELETE_TIME")]
        public DateTime? DeleteTime
        {
            get
            {
                return _DeleteTime;
            }
            set
            {
                _DeleteTime = value;
            }
        }



        private int _ID;

        private int? _WordsNO;

        private int? _FixwordNO;

        private string _CompositeNO;

        private int? _ORDER;

        private int? _IsValidate;

        private DateTime? _InputTime;

        private DateTime? _ModifyTime;

        private DateTime? _DeleteTime;


    }
}